Functions | Variables
InterfaceAndDevice Namespace Reference

Functions

def decoding_char (ctypes_char_array)
 
def image_callback (pData, pFrameInfo, pUser)
 
def print_devices_info (deviceList)
 
def print_interface_info (interfaceList)
 

Variables

 currentsystem = platform.system()
 
 input_func = raw_input
 
 fun_ctype = get_platform_functype()
 
 stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX)
 
 pData = POINTER(c_ubyte)
 
 FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p)
 
 CALL_BACK_FUN = FrameInfoCallBack(image_callback)
 
 SDKVersion = MvCamera.MV_CC_GetSDKVersion()
 
 interfaceList = MV_INTERFACE_INFO_LIST()
 
 transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE
 
 ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList)
 
 nInterfaceIndex = input_func("please input the number of the interface to connect:")
 
 cam_instance = MvCamera()
 
 interface_instance = MvCamera()
 
 curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents
 
 deviceList = MV_CC_DEVICE_INFO_LIST()
 
 nCamIndex = input_func("please input the number of the device to connect:")
 
 stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents
 
 nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize()
 

Function Documentation

◆ decoding_char()

def InterfaceAndDevice.decoding_char (   ctypes_char_array)
Safely decode a string from a ctypes character array.
Compatible with Python 2.x and 3.x, as well as 32-bit and 64-bit environments.

◆ image_callback()

def InterfaceAndDevice.image_callback (   pData,
  pFrameInfo,
  pUser 
)

◆ print_devices_info()

def InterfaceAndDevice.print_devices_info (   deviceList)

◆ print_interface_info()

def InterfaceAndDevice.print_interface_info (   interfaceList)

Variable Documentation

◆ currentsystem

currentsystem = platform.system()

◆ input_func

input_func = raw_input

◆ fun_ctype

fun_ctype = get_platform_functype()

◆ stFrameInfo

stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX)

◆ pData

pData = POINTER(c_ubyte)

◆ FrameInfoCallBack

FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p)

◆ CALL_BACK_FUN

◆ SDKVersion

SDKVersion = MvCamera.MV_CC_GetSDKVersion()

◆ interfaceList

interfaceList = MV_INTERFACE_INFO_LIST()

◆ transportLayerType

transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE

◆ ret

ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList)

◆ nInterfaceIndex

nInterfaceIndex = input_func("please input the number of the interface to connect:")

◆ cam_instance

cam_instance = MvCamera()

◆ interface_instance

interface_instance = MvCamera()

◆ curInterface

curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents

◆ deviceList

deviceList = MV_CC_DEVICE_INFO_LIST()

◆ nCamIndex

nCamIndex = input_func("please input the number of the device to connect:")

◆ stDeviceList

stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents

◆ nPacketSize

nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize()